package com.zk.fm.ui;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.zk.fm.R;
import com.zk.fm.component.MyTextView;
import com.zk.fm.entity.Player;

public class PlayerProperties extends Activity {

	private TextView nametext;
	private Player player;

	private MyTextView corners;
	private MyTextView crossing;
	private MyTextView dribbling;
	private MyTextView finishing;
	private MyTextView first_touch;
	private MyTextView free_kick_taking;
	private MyTextView heading;
	private MyTextView long_shots;
	private MyTextView long_throws;
	private MyTextView marking;
	private MyTextView passing;
	private MyTextView penalty_taking;
	private MyTextView tackling;
	private MyTextView technique;

	private MyTextView aggression;
	private MyTextView anticipation;
	private MyTextView bravery;
	private MyTextView composure;
	private MyTextView concentration;
	private MyTextView creativity;
	private MyTextView decisions;
	private MyTextView determination;
	private MyTextView flair;
	private MyTextView influence;
	private MyTextView off_the_ball;
	private MyTextView positioning;
	private MyTextView teamwork;
	private MyTextView work_rate;

	private MyTextView acceleration;
	private MyTextView agility;
	private MyTextView balance;
	private MyTextView jumping;
	private MyTextView natural_fitness;
	private MyTextView pace;
	private MyTextView stamina;
	private MyTextView strength;

	private MyTextView consistency;
	private MyTextView dirtiness;
	private MyTextView imp_matches;
	private MyTextView injury_proneness;
	private MyTextView versatility;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.playerproperties);

		player = (Player) getIntent().getSerializableExtra("player");
		initView();
		setListener();

	}

	private void setListener() {

	}

	private void initView() {
		nametext = (TextView) findViewById(R.id.name);

		corners = (MyTextView) findViewById(R.id.corners);
		crossing = (MyTextView) findViewById(R.id.crossing);
		dribbling = (MyTextView) findViewById(R.id.dribbling);
		finishing = (MyTextView) findViewById(R.id.finishing);
		first_touch = (MyTextView) findViewById(R.id.first_touch);
		free_kick_taking = (MyTextView) findViewById(R.id.free_kick_taking);
		heading = (MyTextView) findViewById(R.id.heading);
		long_shots = (MyTextView) findViewById(R.id.long_shots);
		long_throws = (MyTextView) findViewById(R.id.long_throws);
		marking = (MyTextView) findViewById(R.id.marking);
		passing = (MyTextView) findViewById(R.id.passing);
		penalty_taking = (MyTextView) findViewById(R.id.penalty_taking);
		tackling = (MyTextView) findViewById(R.id.tackling);
		technique = (MyTextView) findViewById(R.id.technique);

		aggression = (MyTextView) findViewById(R.id.aggression);
		anticipation = (MyTextView) findViewById(R.id.anticipation);
		bravery = (MyTextView) findViewById(R.id.bravery);
		composure = (MyTextView) findViewById(R.id.composure);
		concentration = (MyTextView) findViewById(R.id.concentration);
		creativity = (MyTextView) findViewById(R.id.creativity);
		decisions = (MyTextView) findViewById(R.id.decisions);
		determination = (MyTextView) findViewById(R.id.determination);
		flair = (MyTextView) findViewById(R.id.flair);
		influence = (MyTextView) findViewById(R.id.influence);
		off_the_ball = (MyTextView) findViewById(R.id.off_the_ball);
		positioning = (MyTextView) findViewById(R.id.positioning);
		teamwork = (MyTextView) findViewById(R.id.teamwork);
		work_rate = (MyTextView) findViewById(R.id.work_rate);

		acceleration = (MyTextView) findViewById(R.id.acceleration);
		agility = (MyTextView) findViewById(R.id.agility);
		balance = (MyTextView) findViewById(R.id.balance);
		jumping = (MyTextView) findViewById(R.id.jumping);
		natural_fitness = (MyTextView) findViewById(R.id.natural_fitness);
		pace = (MyTextView) findViewById(R.id.pace);
		stamina = (MyTextView) findViewById(R.id.stamina);
		strength = (MyTextView) findViewById(R.id.strength);

		consistency = (MyTextView) findViewById(R.id.consistency);
		dirtiness = (MyTextView) findViewById(R.id.dirtiness);
		imp_matches = (MyTextView) findViewById(R.id.imp_matches);
		injury_proneness = (MyTextView) findViewById(R.id.injury_proneness);
		versatility = (MyTextView) findViewById(R.id.versatility);

		nametext.setText(player.getName());
		corners.setText(player.getCorners() + "");
		crossing.setText(player.getCrossing() + "");
		dribbling.setText(player.getDribbling() + "");
		finishing.setText(player.getFinishing() + "");
		first_touch.setText(player.getFirst_touch() + "");
		free_kick_taking.setText(player.getFree_kick_taking() + "");
		heading.setText(player.getHeading() + "");
		long_shots.setText(player.getLong_shots() + "");
		long_throws.setText(player.getLong_throws() + "");
		marking.setText(player.getMarking() + "");
		passing.setText(player.getPassing() + "");
		penalty_taking.setText(player.getPenalty_taking() + "");
		tackling.setText(player.getTackling() + "");
		technique.setText(player.getTechnique() + "");

		aggression.setText(player.getAggression() + "");
		anticipation.setText(player.getAnticipation() + "");
		bravery.setText(player.getBravery() + "");
		composure.setText(player.getComposure() + "");
		concentration.setText(player.getConcentration() + "");
		creativity.setText(player.getCreativity() + "");
		decisions.setText(player.getDecisions() + "");
		determination.setText(player.getDetermination() + "");
		flair.setText(player.getFlair() + "");
		influence.setText(player.getInfluence() + "");
		off_the_ball.setText(player.getOff_the_ball() + "");
		positioning.setText(player.getPositioning() + "");
		teamwork.setText(player.getTeamwork() + "");
		work_rate.setText(player.getWork_rate() + "");

		acceleration.setText(player.getAcceleration() + "");
		agility.setText(player.getAgility() + "");
		balance.setText(player.getBalance() + "");
		jumping.setText(player.getJumping() + "");
		natural_fitness.setText(player.getNatural_fitness() + "");
		pace.setText(player.getPace() + "");
		stamina.setText(player.getStamina() + "");
		strength.setText(player.getStrength() + "");

		consistency.setText(player.getConcentration() + "");
		dirtiness.setText(player.getDirtiness() + "");
		imp_matches.setText(player.getImp_matches() + "");
		injury_proneness.setText(player.getInjury_proneness() + "");
		versatility.setText(player.getVersatility() + "");

	}
}
